package net.guerlab.smart.uploader.service.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * 上传配置
 *
 * @author guer
 */
@Data
@RefreshScope
@ConfigurationProperties(prefix = "upload")
public class UploadProperties {

    /**
     * 默认深度
     */
    public static final int DEFAULT_LEVEL = 0;

    /**
     * 最大深度
     */
    private int maxLevel = DEFAULT_LEVEL;
}
